/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.springvision.yuanfeng.device.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.springvision.yuanfeng.device.entity.DeviceMessage;

/**
 * 设备MAPPER接口
 * 
 * @author ycb
 * @version 2018-07-20
 */
@MyBatisMapper
public interface DeviceStatMapper {

	public List<String> findDevice24HourReportValue(@Param("statDate") String statDate,
			@Param("deviceId") String deviceId);

	public List<DeviceMessage> findDeviceLastestReportValue(@Param("statDate") String statDate,
			@Param("stationId") String stationId);

	@MapKey("deviceId")
	public Map<String, DeviceMessage> findDeviceLastestReportValue2(@Param("statDate") String statDate,
			@Param("stationId") String stationId);

	public Integer getDeviceReportCount(@Param("deviceId") String deviceId);

}